# coding:utf-8
import test01,write2file
import time
def main():
    for i in range(8,15):
        path = '../resources/%d.xls'%(i)
        danxuan,duoxuan,tiankong,panduan = test01.getItem(path)
        zhangjie = '第'+str(i)+'章'
        write2file.write_zhangjie(zhangjie)
        write2file.write_question('一.单选题',danxuan)
        write2file.write_question('二.多选题',duoxuan)
        write2file.write_question('三.填空题',tiankong)
        write2file.write_question('四.判断题',panduan)
    path = '../resources/15.xls'
    danxuan, duoxuan, tiankong, panduan = test01.getItem(path)
    zhangjie = '毛中特判断题补充'
    write2file.write_zhangjie(zhangjie)
    write2file.write_question('一.判断题', panduan)
if __name__ == '__main__':
    start_time =  time.time()
    main()
    end_time = time.time()
    print('总用时:%s秒'%str(end_time - start_time))

